package qianFeng.day2;

import java.util.Scanner;

public class ScoreCalc {
    public static void main(String[] args) {
        int java,c,cShape;
        Scanner input=new Scanner(System.in);
        System.out.println("请输入java的成绩：");
        java=input.nextInt();
        System.out.println("请输入c的成绩：");
        c=input.nextInt();
        System.out.println("请输入cShape的成绩：");
        cShape=input.nextInt();
        ScoreNumeration score=new ScoreNumeration();
        score.Score_ave(score.Score_sum(java,c,cShape));
    }
}
class ScoreNumeration{
    public int Score_sum(int java,int c,int cShape){
        int sum=java+c+cShape;
        System.out.println("总成绩为："+sum);
        return sum;
    }
    public void Score_ave(int sum){
        int ave=sum/3;
        System.out.println("平均成绩为："+ave);
    }
}
